import { fetch } from '../util/http.js';

/**
 * 获取系统用户列表
*/
export function getSystemUser(data){
  return fetch({
    url:'sys/users',
    method:'post',
    data:data
  });
}

/**
 * 删除系统用户
*/
export function delSystemUser(data){
  return fetch({
    url:'sys/delete/'+data.id,
    method:'delete'
  });
}

/**
 * 添加系统用户
*/
export function addSystemUser(data){
  return fetch({
    url:'home/sysUser',
    method:'post',
    data:data
  });
}

export function getSystemUserRole(data){
  return fetch({
    url:'role/search',
    method:'post',
    data:data
  });
}